<?php

require_once("PHPUnit/Extensions/SeleniumTestCase.php");

abstract class Kzend_WebTestAbstract extends PHPUnit_Extensions_SeleniumTestCase
{
	protected $_seleneseDir = null;

	protected function setUp()
	{
		$configs = Zend_Registry::get("appConfig");

		$this->setHost($configs['kzend']['tests']['rcServerHost']);
		$this->setBrowserUrl($configs['kzend']['tests']['browserUrl']);

		$this->_seleneseDir = $configs['kzend']['tests']['seleneseDir'];
	}

	public function runHtmlSelenese($filename)
	{
		$this->runSelenese($this->_seleneseDir . "/" . $filename);
	}
}
